package org.jzyan.framework.job.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <p>
 * xxl job config
 * </p>
 *
 * @author jzyan
 * @since 2022-09-28
 */
@Data
@ConfigurationProperties(prefix = "xxl.job")
public class XxlJobProperties {

    public String adminAddresses;
    public String accessToken;
    public String username;
    public String password;
    public Executor executor;

    @Data
    public static class Executor {
        public String appName;
        public String address;
        public String title;
        public String ip;
        public int port;
        public String logPath;
        public int logRetentionDays;
    }

}
